<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>

		<script type="text/javascript">
			// 使用循环的方式打印九九乘法表, 用表格呈现。
			document.write("<table>");
			for (var i = 1; i < 10; i++) {
				document.write("<tr>");
				for (var j = 1; j <= i; j++) {
					document.write("<td>" + j + "*" + i + "=" + i * j );
				}
				document.write("</tr>");
			}
			document.write("</table>");
		</script>
	</body>
</html>
